package com.jrx.anytxn.investor.job.file.loan.order.step;

import com.jrx.anytxn.investor.entity.AmLoanMainInvestorInfo;
import com.jrx.anytxn.investor.service.IInvestorFileService;
import com.jrx.anytxn.param.dto.investor.FileBean;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 利息计提 - processor
 *
 * @author liuyang
 * @date 2020-05-26
 */
@Service
public class LoanOrderProcessor implements ItemProcessor<AmLoanMainInvestorInfo, FileBean> {



    @Autowired
    private IInvestorFileService fileService;

    @Override
    public FileBean process(AmLoanMainInvestorInfo item) {

        return fileService.createLoanOrderFileMessage(item);

    }

}
